package com.web.base.wechat.model;

import com.blue.core.dict.State;
import com.blue.core.tree.ITreeItem;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.blue.jdbc.annotation.Transient;

/**
 * 微信菜单实体类
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月27日
 */
@Table(name = "wx_wechat_menu")
public class WechatMenu implements ITreeItem
{
	@Id
	private Integer id; // 编号
	private Integer parentId; // 上级编号
	private Integer wechatId; // 微信编号
	private String name; // 名称
	private String key; // 键
	private String url; // 链接
	private String descp; // 描述
	private State state; // 状态：0正常，1作废
	private String type; // 类型
	private Integer sort; // 排序

	@Transient
	private String parentName; // 上级名称
	@Transient
	private String wechatName; // 微信名称
	
	public WechatMenu()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public Integer getParentId()
	{
		return this.parentId;
	}
	
	public void setParentId(Integer parentId)
	{
		this.parentId = parentId;
	}
	
	public Integer getWechatId()
	{
		return this.wechatId;
	}
	
	public void setWechatId(Integer wechatId)
	{
		this.wechatId = wechatId;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getKey()
	{
		return this.key;
	}
	
	public void setKey(String key)
	{
		this.key = key;
	}
	
	public String getUrl()
	{
		return this.url;
	}
	
	public void setUrl(String url)
	{
		this.url = url;
	}
	
	public String getDescp()
	{
		return this.descp;
	}
	
	public void setDescp(String descp)
	{
		this.descp = descp;
	}
	
	public State getState()
	{
		return this.state;
	}
	
	public void setState(State state)
	{
		this.state = state;
	}
	
	public String getType()
	{
		return this.type;
	}
	
	public void setType(String type)
	{
		this.type = type;
	}
	
	public Integer getSort()
	{
		return this.sort;
	}
	
	public void setSort(Integer sort)
	{
		this.sort = sort;
	}

	public String getParentName()
	{
		return parentName;
	}

	public void setParentName(String parentName)
	{
		this.parentName = parentName;
	}

	public String getWechatName()
	{
		return wechatName;
	}

	public void setWechatName(String wechatName)
	{
		this.wechatName = wechatName;
	}
}
